package com.dragon.codefx.dataBase.controller.dto;

import com.dragon.bean.SerializableDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 添加数据库配置参数对象
 * @author lsc
 * @since 2025/6/20 14:17
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@ApiModel("修改数据库配置参数对象")
public class DatabaseUpdateDTO extends SerializableDTO<DatabaseUpdateDTO> {

    /**
     *主键
     */
    @ApiModelProperty(value = "主键", required = true)
    private Integer id;

    /**
     *别名
     */
    @ApiModelProperty(value = "别名", required = true)
    private String label;


    /**
     *地址
     */
    @ApiModelProperty(value = "地址", required = true)
    private String url;


    /**
     *用户名
     */
    @ApiModelProperty(value = "用户名", required = false)
    private String username;


    /**
     *密码
     */
    @ApiModelProperty(value = "密码", required = false)
    private String password;


    /**
     *端口
     */
    @ApiModelProperty(value = "端口", required = false)
    private String port;
}
